<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>打擂记录</title>
    <link href="css/mui.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="css/aui.css"/>
    <link rel="stylesheet" href="css/shop.css">
    <link rel="stylesheet" href="css/alert.css">
    <script src="js/jquery-1.8.2.min.js"></script>
    <script src="js/mui.min.js"></script>
    <script>
        function autoload(){
            var data={};
            data.user_id=user_id;
            data.userpwd=userpwd;
            $.ajax({
                type: "POST",
                //url: "http://test/jsonp.php",
                data: data,
                url: "http://xjh.taoleyizhan.com/wap/index.php?ctl=baozangclone&act=daleijilu",
                dataType: "json",
                success: function (json) {
                    console.log(json);
                    page_data=json;
                    var noticeList="";

//                    for(var i=0;i<page_data.newest_lottery_list.length;i++){
//                        noticeList+='<p class="aui-color-red ">&nbsp;恭喜&nbsp;'+page_data.newest_lottery_list[i].user_name+'&nbsp;获得'+page_data.newest_lottery_list[i].name+'&nbsp;</p>';
//                    }
                    $("#lunbo").html(noticeList);
                    $("#page_title").text(page_data.page_title);
                    $("#sheng").text(page_data.sheng);
                    $("#bai").text(page_data.bai);
                    $("#zongju").text(page_data.zongju);
                    $(".shenglv").html(page_data.shenglv+"%");
                    var List="";
                    var lost="lose";
                    var success="success";
                    if(page_data.list){
                        for(var i=0;i<page_data.list.length;i++){
                            var wintype;
                            page_data.list[i].gameout==1?wintype=success+'.png':wintype=lost+'.png';
                            if(page_data.list[i].deal_type*1==666666){
                                List+='<li class="aui-border-b-gray aui-pad-b-5"> <div class="aui-color-gray line-height-2 hidden"><span class="fl">房间号: '+page_data.list[i].deal_id+'</span> <span class="f12 fr">参与时间:'+page_data.list[i].post_date+'</span></div> <div class="flex"> <div class="f1"><img class="aui-col-8" src="images/kspp.png" alt=""></div> <div class="f5 re"> <img class="ab auto" style="right:40px;top:0;" src="images/'+wintype+'" alt="" width="50"><div class="aui-pad-b-5">快速匹配·16人赛 <span class="fr aui-color-red">'+page_data.list[i].unit_price+'</span></div> <div class="f12">总价:<img src="images/zuan.png" alt="" width="14"> <span>'+page_data.list[i].total_price*1+'</span> 人均: <img src="images/zuan.png" alt="" width="14"><span>'+page_data.list[i].unit_price+'</span>  <span class="fr f10">11452</span></div> </div> </div> </li>';

                            }
                            else if (page_data.list[i].deal_type*1>77777700&&page_data.list[i].deal_type*1<77777711){
                                List+='<li class="aui-border-b-gray aui-pad-b-5"> <div class="aui-color-gray line-height-2 hidden"><span class="fl">房间号:'+page_data.list[i].deal_id+'</span> <span class="f12 fr">参与时间:'+page_data.list[i].post_date+'</span></div> <div class="flex"> <div class="f1"><img class="aui-col-8" src="images/pws_1f.png" alt=""></div> <div class="f5 re"> <img class="ab auto" style="right:40px;top:0;" src="images/'+wintype+'" alt="" width="50"> <div class="aui-pad-b-5">江湖生涯篇 淘汰赛 <span class="fr aui-color-red">'+page_data.list[i].unit_price+'</span></div> <div class="f12">总价:<img src="images/zuan.png" alt="" width="14"> <span>'+page_data.list[i].total_price*1+'</span> 人均: <img src="images/zuan.png" alt="" width="14"><span>288</span>  <span class="fr f10">'+page_data.list[i].unit_price+'</span></div> </div> </div> </li>';
                            }
                            else if (page_data.list[i].deal_type*1>88888800&&page_data.list[i].deal_type*1<88888811){
                                List+='<li class="aui-border-b-gray aui-pad-b-5"> <div class="aui-color-gray line-height-2 hidden"><span class="fl">房间号:'+page_data.list[i].deal_id+'</span> <span class="f12 fr">参与时间:'+page_data.list[i].post_date+'</span></div> <div class="flex"> <div class="f1"><img class="aui-col-8" src="images/pws_1f.png" alt=""></div> <div class="f5 re"> <img class="ab auto" style="right:40px;top:0;" src="images/'+wintype+'" alt="" width="50"> <div class="aui-pad-b-5"><span>猜拳大奖赛·</span><span>'+page_data.list[i].jnums+'人淘汰赛</span> <span class="fr aui-color-red">'+page_data.list[i].unit_price+'</span></div> <div class="f12">总价:<img src="images/zuan.png" alt="" width="14"> <span>'+page_data.list[i].total_price*1+'</span> 人均: <img src="images/zuan.png" alt="" width="14"><span>'+page_data.list[i].unit_price+'</span>  <span class="fr f10">11452</span></div> </div> </div> </li>';

                            }
                            else {
                                List+='<li class="aui-border-b-gray aui-pad-b-5"> <div class="aui-color-gray line-height-2 hidden"><span class="fl">房间号:'+page_data.list[i].deal_id+'</span> <span class="f12 fr">参与时间:'+page_data.list[i].post_date+'</span></div> <div class="flex"> <div class="f1"><img class="aui-col-8" src="'+hostUrl+page_data.list[i].icon+'" alt=""></div> <div class="f5 re"> <img class="ab auto" style="right:40px;top:0;" src="images/'+wintype+'" alt="" width="50"> <div class="aui-pad-b-5"><span>宝藏争夺赛·</span>'+page_data.list[i].jnums+'人淘汰赛<span></span> <span class="fr aui-color-red">'+page_data.list[i].unit_price+'</span></div> <div class="f12">总价:<img src="images/zuan.png" alt="" width="14"> <span>'+page_data.list[i].total_price*1+'</span> 人均: <img src="images/zuan.png" alt="" width="14"><span>'+page_data.list[i].unit_price+'</span>  <span class="fr f10">11452</span></div> </div> </div> </li>';
                            }
                        }
                        $(".dalei_list").html(List)
                    }
                    InitChat();
                },
                error:function(json){
                    console.log(json);
                }
            });
        }
    </script>
    <script src="js/init.js"></script>
</head>
<body>
    <header class="mui-bar mui-bar-nav ">
        <a href="index2.html" class="mui-icon-undo mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title" id="page_title">{$data.page_title}</h1>
        <a href="" class="fr aui-color-white aui-pad-t-15 f14">设置</a>
    </header>

    <div class="mui-content mui-text-center aui-pad-15 f14">
        <!--<div class="aui-pad-15">-->
            <!--<img class="user_tx aui-border-rasius-y aui-mar-10" src="image/avatar.png" alt="" width="70">-->
            <!--<div class="aui-pad-b-5"><img class="aui-mar-r-5 vmid" src="image/sex1.png" alt="" width="14">司马懿 <span>ID:12321</span></div>-->
            <!--<div><span>段位:红黑带</span><span class="aui-pad-l-10">人气:123156</span></div>-->
        <!--</div>-->
        <div class="product aui-col-10 aui-mar-t-10 aui-color-white flex" style="justify-content:space-between;">
            <div style="width:23%;">
                <div id="zongju" class="prod_bg">999</div>
                <div class="line-height-2 aui-color-black">总局数</div>
            </div>
            <div style="width:23%;">
                <div id="sheng" class="prod_bg">99</div>
                <div class="line-height-2 aui-color-black">胜利</div>
            </div>
            <div style="width:23%;">
                <div id="bai" class="prod_bg">99999</div>
                <div class="line-height-2 aui-color-black">失败</div>
            </div>
            <div style="width:23%;">
                <div class="shenglv prod_bg">99999</div>
                <div class="line-height-2 aui-color-black">胜率</div>
            </div>
        </div>

        <div class="mui-text-left">
            <div class="aui-mar-t-10 line-height-3"><b>近期参与的打擂记录</b></div>
            <ul class="dalei_list">
                <li class="aui-border-b-gray aui-pad-b-5">
                    <div class="aui-color-gray line-height-2 hidden"><span class="fl">房间号:1234</span> <span class="f12 fr">参与时间:2018-1-16</span></div>
                    <div class="flex">
                        <div class="f1"><img class="aui-col-8" src="images/pws_1f.png" alt=""></div>
                        <div class="f5">
                            <div class="aui-pad-b-5">煮酒论英雄·独闯江湖·16人赛 <span class="fr aui-color-red">-100</span></div>
                            <div class="f12">总价:<img src="images/zuan.png" alt="" width="14"> 2888 人均: <img src="images/zuan.png" alt="" width="14">288  <span class="fr f10">11452</span></div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>

    <div class="alert f14 none">
        <div class="none tixian_alert fix mui-text-center aui-background-white aui-pad-15 aui-col-10" style="left:0;bottom:-300px;border-top:1px solid #ddd;">
            <img class="yaoq_close ab retop reri" src="images/close.png" alt="" width="20">
            <div class="mui-text-left">选择提现金额</div>
            <div class="aui-col-9 auto">
                <div class="jine flex">
                    <div>100</div>
                    <div>500</div>
                    <div>2000</div>
                    <div>5000</div>
                    <div>10000</div>
                    <div>50000</div>
                </div>
                <input class="aui-col-10 mui-text-center f12" type="text" placeholder="请输入金额">
                <div id="tixian2" class="tixian line-height-3" style="width:100%;margin:0;">立即提现</div>
            </div>
        </div>

        <div class="none ewm_alert fix aui-col-9 aui-background-white aui-pad-15" style="left:5%;bottom:5%;">
            <div>
                <img class="fl" src="image/avatar.png" alt="" width="35">
                <div class="fl aui-mar-l-10">
                    <div>小鱼儿 <img src="image/sex1.png" alt="" width="14"></div>
                    <div class="f12 aui-color-gray">河南·安阳</div>
                </div>
                <img class="fr yaoq_close" src="images/close.png" alt="" width="20">
            </div>
            <img class="aui-col-10" src="images/erweima.png" alt="">
            <div class="f12 mui-text-center">扫描二维码注册小江湖，和我一起拿大奖吧！</div>
        </div>
    </div>
</body>
<script src="js/alert.js"></script>
</html>